const TokenKey = 'userInfo';

// 认证令牌
export function getToken() {
	var value = uni.getStorageSync(TokenKey) || ''
	if(value && value != ''){
		return value.access_token
	}else{
		return null
	}
	
}

export function setToken(token) {
	return uni.setStorageSync(TokenKey, token)
}

export function removeToken() {
	return uni.removeStorageSync(TokenKey)
}
